using System;
using System.Collections.Generic;
using System.Web;
using System.Web.SessionState;

using PlugNT.Cms.BLL;

namespace PlugNT.Cms.Web.Tools
{



    public class Pre_Category : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            int id = 0;
            int.TryParse(context.Request.QueryString["id"] as string, out id);
            if (id > 0)
            {
                context.Response.Write(new PlugNT.Cms.BLL.Category().GetCacheJson(id));
            }
            else
            {
                context.Response.Write("null");
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

